<?php get_header(); ?>
    <div id="container" class="container">

    <?php get_sidebar(); ?>

    <div id="content" class="narrowcolumn">

	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div class="navigation">
			<div class="alignright"><?php next_post_link('%link &raquo;') ?></div>
			<div class="alignleft"><?php previous_post_link('&laquo; %link') ?></div>
		</div>

        <div class="post" id="post-<?php the_ID(); ?>">
            <div class="post-title-wrapper">
            <h2><?php the_title(); ?></h2>

            <div class="post-meta-wrapper">
                <small>发表时间:<?php the_time('M jS, Y') ?>·分类:<?php the_category(', ') ?>·Tags:<?php the_tags('', ', ', ''); ?>·阅读:<?php the_user_views("次", true); ?>·<?php comments_popup_link('居然还没有人评论, 去抢沙发! &#187;', '只有 1 个评论 &#187;', '只有 % 个评论 &#187;'); ?>·<?php edit_post_link('Edit', '', ''); ?> 
</small>
                </div>

            </div>
            
            <div class="entry-wrapper">
			<div class="entry">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>

				<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
				<p class="postmetadata alt">
						<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
							// Both Comments and Pings are open ?>
							怎么样？来 <a href="#respond">留个言</a>吧, 或者 <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a>.

                        <?php } edit_post_link('Edit this entry','','.'); ?>
				</p>
                </div>
                <?php wp_link_pages(); ?>
            </div>
		</div>

	<?php comments_template(); ?>

	<?php endwhile; else: ?>

		<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

	</div>
    </div>
<?php get_footer(); ?>
